<%= form_for(@phieu_sach) do |f| %>
  <% if @phieu_sach.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@phieu_sach.errors.count, "error") %> prohibited this phieu_sach from being saved:</h2>

      <ul>
      <% @phieu_sach.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :BorrowerName %><br />
    <%= f.text_field :BorrowerName %>
  </div>
  <div class="field">
    <%= f.label :BookISBN %><br />
    <%= f.text_field :BookISBN %>
  </div>
  <div class="field">
    <%= f.label :BorrowDate %><br />
    <%= f.date_select :BorrowDate %>
  </div>
  <div class="field">
    <%= f.label :ReturnDate %><br />
    <%= f.date_select :ReturnDate %>
  </div>
  <div class="field">
    <%= f.label :Status %><br />
    <%= f.check_box :Status %>
  </div>
  <div class="field">
    <%= f.label :DudeDate %><br />
    <%= f.date_select :DudeDate %>
  </div>
  <div class="field">
    <%= f.label :FineCost %><br />
    <%= f.number_field :FineCost %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
